package com.hxgz.steel.dao;

import com.hxgz.steel.domain.AskBuy;
import com.hxgz.steel.dto.AskBuyDetailDto;
import com.hxgz.steel.dto.AskBuyDto;
import com.hxgz.steel.dto.ListAsksDto;
import com.hxgz.steel.dto.WxAskBuyListDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

@Component("AskBuyMapper")
public interface AskBuyMapper {

  int deleteByPrimaryKey(Long id);

  int insert(AskBuy record);

  int insertSelective(AskBuy record);

  AskBuy selectByPrimaryKey(Long id);

  int updateByPrimaryKeySelective(AskBuy record);

  int updateByPrimaryKey(AskBuy record);

  List<AskBuyDto> getAskList(HashMap<Object, Object> map);

  List<AskBuyDto> getAskListByZero(HashMap<Object, Object> map);

  List<AskBuyDto> getAskListByOne(HashMap<Object, Object> map);

  Integer getNumberByDay(Long id);

  Integer getAskNumber(Long id);

  AskBuyDetailDto checkAskBuyById(Long id);

  List listAsks();

  Integer getRealAsk(Long merchantId);

  List<WxAskBuyListDto> getWxAskBuyListByUserId(@Param("status")Integer status,@Param("userId")Long userId,@Param("merchantId")Long merchantId);

  List<ListAsksDto> getListAsksVos();

  void updateStatusInIds(List<Long> list);
}